package com.sunyard.dal.mapper;


import com.sunyard.dal.entity.City;
import com.sunyard.dal.entity.District;
import com.sunyard.dal.entity.Province;

import java.util.List;

/**
 * @author k3887
 * @Description
 * @date 2018-11-22 下午4:07:19
 */
public interface CityMapper {
    /**
     * Description
     */
    public List<Province> findAllProvinceDatas();

    /**
     * Description
     */
    public List<City> findCitysByPro(Province province);

    /**
     * Description
     */
    public List<District> findDistrictByCtcd(City city);

    /**
     * @param proCode
     * @return
     */
    public Province findProvinceByCode(String proCode);

    /**
     * @param ctCode
     * @return
     */
    public City findCityByCode(String ctCode);

    /**
     * @param disCode
     * @return
     */
    public District findDistrictByCode(String disCode);

    /**
     * @param unionCode
     * @return
     */
    public District findDistrictByUnionCode(String unionCode);

    /**
     * @param unionCode
     * @return
     */
    public City findCityByUnionCode(String unionCode);

    /**
     * Description
     */
    public void insert(District district);

    /**
     * Description
     */
    public List<Province> threeLinkGetProv();

    /**
     * Description
     */
    public List<City> threeLinkGetCity(String parentCode);

    /**
     * Description
     */
    public List<District> threeLinkGetDist(String parentCode);

    List<String> getProCode();

    List<String> getCtCode(String proCode);
}
